function YapFoxAdd(forma){
	var yap = trim(forma.elements["yap"].value);
	var fox = trim(forma.elements["fox"].value);

	if(yap.match(/^\d+$/) && fox.match(/^\d+$/)){
		
		LoadRSDoc("komitenti.php?a=yapfox&mod=add&yap="+yap+"&fox="+fox,'setContent');
	}
}
function YapFoxDelete(cell){
	var cells = cell.parentNode.parentNode.getElementsByTagName("td");
	var yap = trim(cells[1].innerHTML);
	var fox = trim(cells[2].innerHTML);
	var name = trim(cells[3].innerHTML);
	if(confirm("Potvrdite brisanje:\n\tYAP: "+yap+"\n\tFOX: "+fox+"\n\tNaziv: "+name)){
		LoadRSDoc("komitenti.php?a=yapfox&mod=del&yap="+yap+"&fox="+fox,"setContent");
	}
}
function FilterYapFox(forma){
	var fyap = trim(forma.elements["filter_yap"].value);
	var ffox = trim(forma.elements["filter_fox"].value);
	LoadRSDoc("komitenti.php?a=yapfox&fyap="+fyap+"&ffox="+ffox,"setContent");
}